-
Notifications
You must be signed in to change notification settings - Fork 62
feat: expose ClientTrustConfig as a public class #1496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
8ec76df
to
692955d
Compare
Noticed the rekorV2 tests are wishy washy |
If you mean that the signing tests using staging rekor2 fail with 50x errors more often then is reasonable: yes this seems to be the case. I'm following up in sigstore/rekor-tiles repo |
692955d
to
fc1630e
Compare
sizeable new main commit; rebased pr |
/gcbrun |
Thanks @SequeI! Exposing this as public makes sense to me. Two thoughts:
|
a7b8e19
to
a13895d
Compare
Signed-off-by: SequeI <[email protected]>
a13895d
to
a700c31
Compare
@SequeI Could you avoid force-pushing unless absolutely necessary? It causes a notification to me (and presumably anything one else subscribed on the PR) each time you do 🙂 (It's okay to have a non-clean history on this PR -- we'll clean it up with the actual merge.) |
@woodruffw Apologies! Won't do that anymore Would it make sense to have a new public module (trust like previously) and just expose trustedRoot and SigningConfig alongside ClientTrustConfig due to it's dependence on it? Putting it into models creates a lot of circular import errors with rekor and rekorv2 unfortunately |
Hmm, could you paste those? I think we'd ideally eliminate those potential circularities are part of v4 anyways; they should all be refactorable. |
Sure :
I wasn't sure if this would be in the scope of the PR, or if I should fix this etc, but I'll fix these in this case |
Thank you! Yes, I'd consider it in scope, and I appreciate you fixing them 🙂 |
Signed-off-by: SequeI <[email protected]>
Resolved; I had thought it would be much more involved but was just a small issue with RekorV1/V2 placement |
Summary
Exposing ClientTrustConfig. Since recent changes to SigningContext.staging/production being moved to ClientTrustConfig, it would be better for this class to be public as it is/will be used in Model-Transparency and such. The API has had massive changes as is, so I think it would be better doing this now for next release.
Resolves #1019
Release Note
Added to changelog.md
The ClientTrustConfig class has been moved from the private _internal package to a new public
module (sigstore.trust). This change formally adds the class to the project's public API,
making it available for use in other projects.